﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/AdminMaster.Master" AutoEventWireup="true" CodeBehind="CreateSpecialist.aspx.cs" Inherits="MyHealthOnline.CreateSpecialist" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <%--The UpdatePanel represents a region on the screen that can be asynchronously updated through a partial page postback--%>
       <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">--%>
           <%-- <ContentTemplate>--%>
          <span class="failureNotification">
             <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
          </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification" 
                         ValidationGroup="RegisterUserValidationGroup"/>
            <table id="UtilizatorNouTb" class="table" align="center">
                <thead id="Head" style="background-color:Gray" runat="server">
                    <tr><td colspan="2">Utilizator Nou</td></tr>
                </thead>
                <tr>
                    <td><label id="SpName" runat="server">Nume Utilizator</label></td>
                    <td><asp:TextBox ID="SpNameText" runat="server" Width="191px" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="SpNameText" 
                         CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="Name is required." 
                         ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><label id="SpParola" runat="server">Parola</label></td>
                    <td><asp:TextBox ID="SpParolaText" runat="server" CssClass="passwordEntry" 
                            TextMode="Password" Width="193px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="SpParolaText" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                             ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><label id="SpConfirmParolaLabel" runat="server">Confirma Parola</label></td>
                    <td><asp:TextBox ID="SpConfirmParolaText" runat="server" CssClass="passwordEntry" 
                            TextMode="Password" Width="193px"></asp:TextBox>
                        <asp:RequiredFieldValidator ControlToValidate="SpConfirmParolaText" CssClass="failureNotification" Display="Dynamic" 
                                     ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired" runat="server" 
                                     ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="SpParolaText" ControlToValidate="SpConfirmParolaText" 
                                     CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                     ValidationGroup="RegisterUserValidationGroup">*</asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td><label id="SpSex" runat="server">Sex</label></td>
                    <td><asp:DropDownList ID="SpSexDropDownList" runat="server" Width="124px" DataTextFormatString="True" DataTextField="Sex">
                                <asp:ListItem Value="-1">Alege ...</asp:ListItem>
                                <asp:ListItem>Masculin</asp:ListItem>
                                <asp:ListItem>Feminin</asp:ListItem>
                        </asp:DropDownList> 
                        <asp:RequiredFieldValidator ID="dropDownList_Validator" runat="server" 
                                    ErrorMessage="RequiredFieldValidator" ControlToValidate="SpSexDropDownList" CssClass="failureNotification"
                                    display="Dynamic" InitialValue="-1" SetFocusOnError="true"  ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr><td> <asp:Label ID="ActivLabel" runat="server" CssClass="inline">Activ</asp:Label></td>
                    <td><asp:CheckBox ID="ActivCheckBox" runat="server"/></td>
                </tr> 
                <tr>
                    <td><asp:Label ID="disciplineLabel" runat="server">Disciplina</asp:Label></td>
                    <td><asp:DropDownList ID="disciplineDDL" runat="server" DataTextField="Id" DataValueField="Id" ></asp:DropDownList></td>
                </tr> 
                <tr>
                    <td><label id="CodSpLabel" runat="server">Cod Unic Specialist</label></td>
                    <td><asp:TextBox ID="CodSpText" runat="server" Width="191px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="CodSpText" 
                         CssClass="failureNotification" ErrorMessage="Code is required." ToolTip="Code is required." 
                         ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr><td><asp:Label ID="birthdayLabel" runat="server">Zi de nastere</asp:Label></td>
                    <td><asp:TextBox runat="server" ID="Date5" />
                        <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/Images/Calendar_scheduleHS.png" AlternateText="Click to show calendar" /><br />
                        <ajaxToolkit:CalendarExtender ID="calendarButtonExtender" Format="d/M/yyyy" runat="server" TargetControlID="Date5"  PopupButtonID="Image1"></ajaxToolkit:CalendarExtender>
                        <div style="font-size: 90%">
                        <em>(Click the image button to show the calendar; &nbsp
                        this calendar dismisses automatically when you choose a date)</em></div>
                    </td>
                </tr>
                <tr>
                    <td><asp:Label ID="MailLabel" runat="server">Email</asp:Label></td>
                    <td><asp:TextBox ID="MailText" runat="server" Width="191px"></asp:TextBox>
                         <asp:RegularExpressionValidator ID="RegularExpressionValidator1"  ControlToValidate="MailText" runat="server" 
                                ErrorMessage="You must enter an email address" ValidationGroup="RegisterUserValidationGroup" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"> </asp:RegularExpressionValidator>
                         <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="MailText" 
                             CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required." 
                             ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Label ID="NrTelLabel" runat="server">Nr. Telefon</asp:Label></td>
                    <td><asp:TextBox ID="NrTelText" runat="server" Width="191px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NrTelText" 
                             CssClass="failureNotification" ErrorMessage="PhoneNo is required." ToolTip="PhoneNo is required." 
                             ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td><asp:Label ID="AdresaLabel" runat="server">Adresa</asp:Label></td>
                    <td><asp:TextBox ID="AdresaText" runat="server" Width="191px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td><asp:Label ID="OrasLabel" runat="server">Oras</asp:Label></td>
                    <td><asp:TextBox ID="OrasText" runat="server" Width="191px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td><asp:Label ID="TaraLabel" runat="server">Tara</asp:Label></td>
                    <td><asp:TextBox ID="TaraText" runat="server" Width="191px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="SpButonAnuleaza" runat="server" Text="Anuleaza" 
                            onclick="SpButonAnuleaza_Click"></asp:Button>
                        <asp:Button ID="SpButonSalveaza" runat="server" Text="Salveaza" 
                            onclick="SpButonSalveaza_Click"></asp:Button>
                    </td>
                </tr>  
            </table>
           <%-- </ContentTemplate>--%>
       <%-- </asp:UpdatePanel>--%>
</asp:Content>
